package br.com.news.ws;

import javax.jws.WebMethod;
import javax.jws.WebService;

import br.com.news.utils.GenericWS;
import br.com.news.utils.service.interfaces.IAnuncioService;

@WebService
public class AnuncioWs extends GenericWS {

	private IAnuncioService anuncioService;

	@WebMethod(exclude=true)
	public void setAnuncioService(IAnuncioService anuncioService) {
		this.anuncioService = anuncioService;
	}
	
	public String sayHello(String name) {
		if (name == null) {
			return "Hello";
		}
		return "Hello, " + name + "!";
	}
	
}
